import APIClient from '../../network/index'

const GetToken = {
    state: {
        token:''
    },
    mutations: {
        getToken(state,modile){
            state.token=modile
        }
    },
    actions: {
        getToken(context,modile){
            APIClient.getToken({params:modile}).then(res=>{
                console.log(res.data.data.token);
                context.commit('getToken',res.data.data.token)
            }).catch(err=>{
                console.log(err);
            })
        }
    },
    modules: {
    }
}
export default GetToken